package com.tom.demo.mapper;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tom.demo.common.entity.AttributeCategory;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author Admin
* @description 针对表【attribute_category(属性分类表)】的数据库操作Mapper
* @createDate 2025-05-03 02:16:48
* @Entity generator.domain.AttributeCategory
*/
@Mapper
@DS("master")
public interface AttributeCategoryMapper extends BaseMapper<AttributeCategory> {

    int deleteByPrimaryKey(Long id);

    int insert(AttributeCategory record);

    AttributeCategory selectByPrimaryKey(Long id);

    int updateByPrimaryKey(AttributeCategory record);

    List<AttributeCategory> findByParentId(@Param("parentId")String parentId);

}
